//Frame.h
#pragma once


//Export header
#ifdef PLAYDLL2_EXPORTS
#define PLAYDLL2_API __declspec(dllexport) 
#else
#define PLAYDLL2_API __declspec(dllimport)
#endif
/*replaces every instance of PLAYDLL2_API with __declspec, 
so put this in front of every function you intend to export*/


//interface class
class IFrame 								
{
public:
	virtual const char* getvalue()= 0;		//needs to be virtual
	virtual void		Delete() = 0;
};

//extern "C" makes the compiler export the functions unmangled.
extern "C" PLAYDLL2_API int CallReturn5();


//Creates a new class which inherits properties from IFrame
class PLAYDLL2_API Frame : public IFrame	
{
public:
	Frame(void);							//optional for virtual functions - constructor
	~Frame(void);							//optional - destructor
	virtual const char* getvalue() { return "new Frame is created";} //needs to be virtual
	virtual void		Delete() {delete this;}
};


extern "C" PLAYDLL2_API Frame *Create();

//eof